package com.njtoyo.taxi.admin.rest.presenter.business.ride;

import cn.hutool.json.JSONUtil;
import com.njtoyo.taxi.admin.rest.wrapper.open.privacy_number.FeeWrapper;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value = "行程录音")
public class RideDialListPresenter {
    @ApiModelProperty(value = "记录ID")
    private Long id;

    @ApiModelProperty(value = "记录ID")
    private Long callRelevanceId;
    
    @ApiModelProperty(value = "通话详情信息")
    private FeeWrapper.FeeInfo detail;

    @ApiModelProperty(value = "华为云录音文件地址")
    private String huaweiUrl;

    @ApiModelProperty(value = "七牛云录音文件地址")
    private String qiniuUrl;

    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    @ApiModelProperty(value = "更新时间")
    private Date updatedAt;

    public void setDetail(String detail) {
        this.detail = JSONUtil.toBean(detail, FeeWrapper.FeeInfo.class);
    }
}
